import { createApp } from 'vue'
import App from '@/App.vue'
import globalComponent from '@/components/index'
// svg插件需要配置代码
import 'virtual:svg-icons-register'
// 全局样式
import '@/styles/index.scss'
// 路由
import router from '@/router'
// 仓库
import pinia from './store'
// 鉴权
import '@/router/permission'
// 按钮权限指令
import { isHasButton } from './directive/has'
//暗黑模式需要的样式
import 'element-plus/theme-chalk/dark/css-vars.css'
// qiankun
// import { registerMicroApps, start } from "qiankun";
// import apps from "./micro-app";
// 引入qiankun全局通信
import "./actions";
// registerMicroApps(apps);
// start({
//   prefetch: false // 取消预加载
// });

const app = createApp(App)
isHasButton(app)
app.use(globalComponent)
app.use(router)
app.use(pinia)
app.mount('#app')

